package com.yenlien.traceyun.business.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * 生产管理
 */
@Entity
@Table(name = "t_produce_manage")
@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class ProduceManage extends TraceEntity {
    @Column(name = "manageName", length = 20)
    private String manageName;              //物品名称
    @Column(name = "materialId", length = 50)
    private String materialId;              //物料id
    @Column(name = "specification", length = 30)
    private String specification;           //规格

    private String spec;    // 单位

    @Column(name = "predictYield", length = 20)
    private String predictYield;            //预计产量
    @Column(name = "monad", length = 10)
    private String monad;                    //预计产量单位
    @Column(name = "type", length = 10)
    private String type;                    //成品 半成品 （1/2）
    @Column(name = "technologyId", length = 50)
    private String technologyId;            //工艺id

//    private String isCheck = "0";     // 0=未检测  1=已检测

    private String source;          // 来源

    private String batch;                // 生产批号


    @Transient
//    private List<ProcessDetail> processDetailList;     // 成品信息
    private String processDetailList;     // 成品信息 form-data传string，然后自己解析成对象

    @Transient
//    private List<ProduceManageTech> produceManageTechList;     // 生产管理里的工序工艺
    private String produceManageTechList;     // 生产管理里的工序工艺


    private String surplusNumber;        //剩余量
    private int subNumber;            //分包数，			追溯码数量
    private int branchPackageNum;        //实际分包数
    private int isOk;                //是否容错(0否，1是)
    private String weight;            //重量
    private int printNumber;        //打印数量
    private String types;        //分包类型：0:pc分包		1：微信分包
}
